<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function Animal() {
				this.name = 'dog';
			}
			
			Animal.prototype.greet = function() {
				console.log(this.name);
			}
			
			function Cat() {
				Animal.call(this);
			}
			
			let cat = new Cat();
			
		</script>
	</body>
</html>
